package com.hutu.config;


import com.zhipu.oapi.ClientV4;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 腾讯云对象存储客户端
 */
@Configuration
@ConfigurationProperties(prefix = "hu.ai")
@Data
public class AiConfig {

    /**
     * accessKey
     */
    private String accessKey;

    @Bean
    public ClientV4 clientV4() {
        return new ClientV4.Builder(accessKey).build();
    }
}